#!/bin/sh
echo "#### CrossCompile START ####"
#OUTPUT1="my_ethercat_app1"
OUTPUT2="my_ethercat_app2"

rm  $OUTPUT2.bin

GCC="/home/zqj/environment/allwinner_toolchain/gcc-linaro-5.3.1-2016.05-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-g++"
#$GCC -std=c++11 $OUTPUT1.cpp -o $OUTPUT1.bin -I/usr/local/out_igh/include -L/usr/local/out_igh/lib -lethercat -pthread -lrt
$GCC -std=c++11 $OUTPUT2.cpp tinyxml2.cpp -o $OUTPUT2.bin -I/usr/local/out_igh/include -L/usr/local/out_igh/lib -lethercat -pthread -lrt

cp -f $OUTPUT2.bin /mnt/hgfs/0VMware_share/

echo "#### CrossCompile END ####"
